<template>
  <div :style="{ border: '1px solid red' }">
    <h2>Two==>a-{{ a() }}--b--{{ b() }}--c--{{ c() }}</h2>
    <button @click="changea(a() + 1)">修改a</button>
    <button @click="changeb(b() + 1)">修改b</button>
    <button @click="changec(c() + 1)">修改c</button>
  </div>
</template>

<script>
export default {
  name: "Two",
  inject: ["a", "b", "c", "changea", "changeb", "changec"],
  mounted() {
    console.log(this);
  },
};
</script>

<style></style>
